Ext.define('Risk.view.areaInfo.ProjectMange',{
    extend:'Ext.window.Window',
    alias:'widget.projectMange',
    title:'项目信息维护',
    modal:true,
    autoShow:true,
    width:350,
    heigth:300,
    resizable:false,
    items:[{
        xtype:'form',
        border:false,
        style:'background-color:#fff;',
        defaults:{
            labelWidth:70,
            width:300
        },
        items:[{
            margin:'10 10 10 10',
            forceSelection:true,
            xtype:'combo',
            itemId:'province',
            store:'areaStore.ProvinceStore',
            displayField: 'name',
            fieldLabel:'省级单位',
            allowBlank:false,
            blankText:'省级单位不能为空！'
        },{
            margin:'10 10 10 10',
            forceSelection:true,
            xtype:'combo',
            itemId:'city',
            store:'areaStore.CityStore',
            fieldLabel:'市级单位',
            allowBlank:false,
            blankText:'市级单位不能为空！',
            displayField: 'name'
        },{
            margin:'10 10 10 10',
            forceSelection:true,
            xtype:'combo',
            itemId:'village',
            store:'areaStore.VillageStore',
            fieldLabel:'县级单位',
            allowBlank:false,
            blankText:'县级单位不能为空！',
            displayField: 'name'
        },{
            margin:'10 10 10 10',
            forceSelection:true,
            xtype:'combo',
            itemId:'type',
            store:'areaStore.TypeStore',
            fieldLabel:'对象类型',
            allowBlank:false,
            blankText:'对象类型不能为空！',
            displayField: 'name'
        },{
            margin:'10 10 10 10',
            forceSelection:true,
            xtype:'textfield',
            itemId:'name',
            fieldLabel:'对象名称',
            allowBlank:false,
            blankText:'对象名称不能为空！'
        },{
            margin:'10 10 10 10',
            forceSelection:true,
            xtype:'textfield',
            itemId:'child',
            fieldLabel:'子装置名称',
            allowBlank:false,
            blankText:'子装置名称不能为空！'
        }],
        buttons:[{
            text:'完成',
            action:'ok'
        },{
            text:'取消',
            action:'cancel'
        }]
        
        
    }]
});